Finding the derivatives of exponential functions